/**
 * Created by fangshufeng on 2017/9/18.
 */
import  React from 'react';

export  default  class MutipleComponent extends  React.Component {

    addSublist = () => {
        const name = ['1','1','我是第三个','我是第四个'];
        const fixNames =  name.map((currentValue,index)=>{
          return <button key={index}>{currentValue}</button>;
        });
        return fixNames;
    };

    render(){
        return (<div>{this.addSublist()}</div>);
    }
}
